<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "cw_tpl1_article".
 *
 * @property integer $ta2_id
 * @property string $ta2_title
 * @property string $ta2_pic_url
 * @property string $ta2_content
 * @property string $ta2_json
 * @property string $ta2_time
 */
class CwTpl2Article extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cw_tpl2_article';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ta2_title', 'ta2_descript', 'ta2_content', 'ta2_time'], 'required'],
            [['ta2_content', 'ta2_json'], 'string'],
            [['ta2_title', 'ta2_pic_descript', 'ta2_time'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ta2_id' => 'Ta1 ID',
            'ta2_title' => '文章标题',
            'ta2_descript' => '文章描述',
            'ta2_content' => '文章内容',
            'ta2_time' => '编辑时间',
        ];
    }
}
